package me.zhengjie.inter.service;

import com.alibaba.fastjson.JSONObject;
import me.zhengjie.business.domain.Zhsq;
import me.zhengjie.business.service.dto.ZhsqDto;
import me.zhengjie.business.service.dto.ZhsqQueryCriteria;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * @description 服务接口
 * @author gongtuohao
 * @date 2022-07-22
 **/
public interface MpZhsqPgService {

    /**
     * 查询数据分页
     * @param zt
     * @param pageable 分页参数
     * @return Map<String,Object>
     */
    Page<Zhsq> queryAllByPgUserId(String zt, Long id, String zhlb, String blurry, Pageable pageable) ;

    @org.springframework.transaction.annotation.Transactional(rollbackFor = Exception.class)
    void updateZhzt(String zt, Long id);

    Zhsq findById(Long id);

    /**
     * 编辑
     * @param resources /
     */
    ZhsqDto updataPg(Zhsq resources, String ids);

    JSONObject findZhInfoAndAdlById(Long zhid);
}
